package com.vincce.fitness.mgt;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2014/11/26.
 */
@Controller
@RequestMapping("/")
public class MgtController {


	/**
	 * 跳转登录页
	 * @return
	 */
	@RequestMapping("/login")
	public String login(HttpServletRequest request) {
		return "mgt/login";
	}

	/**
	 * 登录成功跳转主页
	 * @return
	 */
	@RequestMapping({"/home","/index"})
	public String home(HttpServletRequest request) {
		return "mgt/index";
	}

}
